﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Web.UI;

namespace com.demo
{

    [System.Web.UI.ParseChildren( false)]
    [System.Web.UI.PersistChildren(true)]
    public class UploadButton: System.Web.UI.WebControls.Button
    {
        private UploadProgress progressSetting;

        [DesignerSerializationVisibility(DesignerSerializationVisibility.Content)]
        [System.Web.UI.PersistenceMode(System.Web.UI.PersistenceMode.InnerDefaultProperty)]
        public UploadProgress UploadProgressSetting
        {            
            get {
                if (progressSetting == null)
                {
                    progressSetting = new UploadProgress();
                    if (IsTrackingViewState)
                    {
                        ((IStateManager)progressSetting).TrackViewState();
                    }
                }
               
                return this.progressSetting; 
            }
        }

        

        public UploadButton(): base()
        {
        }
    }
}
